var t = require("../../A4730AC3A71FB5DFC21562C4223CA4D1.js");

Page({
    data: {
        list: [],
        urls: []
    },
    onLoad: function() {
        this.getSecurityReport();
    },
    previewImg: function(t) {
        wx.previewImage({
            current: t.currentTarget.dataset.url,
            urls: this.data.urls
        });
    },
    onPullDownRefresh: function() {
        this.getSecurityReport(!0);
    },
    getSecurityReport: function(e) {
        var r = this;
        t.get("/v2/configure").then(function(t) {
            if (e && wx.stopPullDownRefresh(), 1001 === t.data.code) {
                var a = t.data.response.data, u = [];
                a.forEach(function(t) {
                    t.value.normal && u.push(t.value.normal);
                }), r.setData({
                    list: a,
                    urls: u
                });
            }
        }).catch(function() {
            e && wx.stopPullDownRefresh();
        });
    }
});